import 'package:flutter/material.dart';
import 'package:flutter_app/detail_page.dart';
import 'package:flutter_app/home_page.dart';
import 'package:flutter_app/model/planets.dart';

void main() {
  runApp(new MaterialApp(
    title: "Planets",
    home: new HomePage(),
    routes: <String, WidgetBuilder>{
      '/detail': (_) => new DetailPage(planets[0]),
    },
  ));
}
